package com.sc.nft.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sc.nft.enums.EcologyPoolCommunityServiceRankApprovalStatusEnum;
import com.sc.nft.enums.EcologyPoolCommunityServiceRankTypeEnum;
import com.sc.nft.sup.SuperEntity;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 生态池-服务中心/社区网点榜单配置
 *
 * @TableName sc_ecology_pool_community_service_rank_conf
 */
@TableName(value = "sc_ecology_pool_community_service_rank_conf")
@Data
public class EcologyPoolCommunityServiceRankConf extends SuperEntity implements Serializable {
    private static final long serialVersionUID = 171168677995096901L;
    /**
     * daoId
     */
    @TableField(value = "dao_id")
    private Long daoId;

    /**
     * 榜单名称
     */
    @TableField(value = "rank_name")
    private String rankName;

    /**
     * 类型 1：社区网点 2：服务中心
     */
    @TableField(value = "rank_type")
    private EcologyPoolCommunityServiceRankTypeEnum rankType;

    /**
     * 新增用户/网点阈值
     */
    @TableField(value = "new_user_count_threshold")
    private Integer newUserCountThreshold;

    /**
     * 新增熔炼值阈值
     */
    @TableField(value = "new_ecology_smelting_threshold")
    private BigDecimal newEcologySmeltingThreshold;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 活动规则
     */
    @TableField(value = "activity_rule")
    private String activityRule;

    /**
     * 顶部图
     */
    @TableField(value = "top_image")
    private String topImage;

    /**
     * 状态 0：关闭 1：开启
     */
    @TableField(value = "status")
    private Boolean status;

    /**
     * 入榜数量
     */
    @TableField(value = "join_rank_count")
    private Integer joinRankCount;

    /**
     * 审核状态
     */
    @TableField(value = "approval_status")
    private EcologyPoolCommunityServiceRankApprovalStatusEnum approvalStatus;

    /**
     * 审核失败原因
     */
    @TableField(value = "approval_message")
    private String approvalMessage;

    /**
     * 是否自动结算
     */
    @TableField(value = "auto_settle")
    private Boolean autoSettle;

    /**
     * 是否已结算
     */
    @TableField(value = "settled")
    private Boolean settled;

}